package com.comeon.polymorphism;

public class testPoly {
    public static void main(String[] args) {
        animalCry(new Dog());
        animalCry(new Groundhog());
        animalCry(new Cat());
    }

    static void animalCry(Animal a){
        a.shout();
    }
}
